package com.parktech.sun.domain.service.sunhz.impl;

import com.parktech.sun.domain.model.addressbook.ContactGroup;
import com.parktech.sun.domain.repository.BaseRepository;
import com.parktech.sun.domain.repository.sunhz.ContactGroupRepository;
import com.parktech.sun.domain.repository.sunhz.hibernate.ContactGroupRepositoryImpl;
import com.parktech.sun.domain.service.impl.BaseServiceImpl;
import com.parktech.sun.domain.service.sunhz.ContactGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Created by IntelliJ IDEA.
 * User: Administrator
 * Date: 11-1-8
 * Time: 下午3:01
 * To change this template use File | Settings | File Templates.
 */
@Service("contactGroupService")
public class ContactGroupServiceImpl extends BaseServiceImpl<ContactGroup> implements ContactGroupService {
    private ContactGroupRepository contactGroupRepository;

    @Autowired
    public ContactGroupServiceImpl(ContactGroupRepository contactGroupRepository) {
        super(contactGroupRepository);
        this.contactGroupRepository = contactGroupRepository;
    }

    public ContactGroup getContactGroupByID(Long id) {
        return contactGroupRepository.getContactGroupByID(id);
    }


}
